package com.cn.ant.modules.school.dao;

import com.cn.ant.common.persistence.CrudDao;
import com.cn.ant.common.persistence.MyBatisRepository;
import com.cn.ant.modules.school.entity.MajorInfo;

import java.util.List;
import java.util.Map;

/**
 * 专业信息DAO接口
 * @author AntDream
 * @version 2015-08-19
 */
@MyBatisRepository
public interface MajorInfoDao extends CrudDao<MajorInfo> {

    public int batchInsert(List<MajorInfo> list);

    public MajorInfo getByCode(String majorCode);

    public List<Map<String, String>> queryMajorList(Map<String, String> params);

    public List<Map<String,String>> queryMajorParentCode(Map<String,String> params);

    /**
     * 查询专业的类型
     *
     * @return
     */
    public List<Map<String, String>> queryMajorType(Map<String, String> params);

    public List<Map<String, String>> queryFavMajor(Map<String, String> params);
}